package com.gigi.model;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("班级实体")
@Data
public class ClassDO {

    private Long id;

    @NotNull(message = "班级人数不能为空")
    private Integer count;

    @NotBlank(message = "班级名不能为空")
    private String name;

    @NotNull(message = "有效性不能为空")
    private Integer flag;

}
